-- GENERATED SPELL FOR [Avian Ripper] --


function spell0_21891(pUnit, Event) --@Flesh Rip,n/a--
pUnit:FullCastSpellOnTarget(38056,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21891', 15000, 1)
end

function Sorts_21891(pUnit, Event)
local choix_sorts_21891 = math.random(0, 0)
if choix_sorts_21891 == 0 then
pUnit:RegisterEvent('spell0_21891', 1, 1)
end
end

function mob21891_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21891', math.random(1500, 3000), 1)
end

function mob21891_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21891_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21891_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21891, 1, 'mob21891_Action')
RegisterUnitEvent(21891, 2, 'mob21891_Leave')
RegisterUnitEvent(21891, 3, 'mob21891_Kill')
RegisterUnitEvent(21891, 4, 'mob21891_Die')
